import { createApp } from 'vue';
import '@/styles/index.scss';
import App from '@/App.vue';
import 'virtual:uno.css';
// svg组件
import 'virtual:svg-icons-register';
import { setUpPinia } from '@/store';
import { setUpRouter } from '@/router';
import { setUpPlugins } from '@/plugins';
import { setUpGlobComponents } from '@/components';

function setUpApp() {
  const app = createApp(App);

  // 装载全局组件
  setUpGlobComponents(app);

  // 装载pinia
  setUpPinia(app);

  // 装载vue-router
  setUpRouter(app);

  // 装载插件
  setUpPlugins(app);

  app.mount('#app');
}

setUpApp();
